<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页效果</title>
    <link rel="stylesheet" href="./reset.css">
    <style>
        .bigbox {
            width: 360px;
            height: 600px;
            border: 1px solid gray;
            margin: 20px auto;
        }
        .top{
            margin: 20px;
            margin-top: 60px;
            font-size: 20px;
            font-weight: 700;
        }
        .block{
            margin-left: 30px;
            margin-top: 30px;
        }
        .block input{
            width: 300px;
            height: 50px;
            line-height: 50px;
            border-bottom: 1px solid gray;
        }
        .block button{
            width: 300px;
            height: 50px;
            background-color: rgb(223, 216, 216);
            border-radius: 30px;
            color: gray;
        }
        .foot{
            width: 300px;
            margin-left: 30px;
            margin-top: 15px;
            display: flex;
            justify-content: space-between;
            color: rgb(73, 183, 222);
            font-size: 14px;
        }
        .bottom{
            width: 300px;
            font-size: 10px;
            margin-left: 30px;
            margin-top: 160px;
        }
        .bottom :nth-child(3){
            color: rgb(73, 183, 222);
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="bigbox">
            <div class="top">密码登录</div>
                <div class="block">
                    <input type="text" placeholder="手机/用户名" v-model="form.phone">
                </div>
                <div class="block">
                    <input type="password" placeholder="密码" v-model="form.pass">
                </div>
                <div class="block">
                    <button @click="login()">登录</button>
                </div>
            <div class="foot">
                <span class="left">手机号登录</span>
                <span class="right">忘记密码</span>
            </div>
            <div class="bottom">
                <input type="checkbox">
                <span>已阅读并同意</span>
                <span>《用户服务协议》、《隐私政策》</span>
            </div>
        </div>
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#app',
        data: {
            form:{ phone:'', pass:'' }
        },
        methods: {
            login(){
                console.log( this.form );
            }
        }
    })
</script>